Adwaita: Propagate bg color to titlebar separator descendants
authorAdrien Plazas <kekun.plazas@laposte.net>
Tue, 24 Jul 2018 12:37:57 +0000 (14:37 +0200)
committerJakub Steiner <jimmac@gmail.com>
Fri, 9 Nov 2018 07:49:38 +0000 (08:49 +0100)
Gives the same background color to all separators descending from a
title bar than to its direct childrens.

This prevents separators which are in a titlebar but not direct children
from the widget with the titlebar style class from being almost
transparent and hence it prevent them from revealing the clear color of
the window's titlebar (black).

https://gitlab.gnome.org/GNOME/gtk/issues/1231

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index d898075488aa236ad45dc9ddbdb1476b504322d3..f7b26a265a5f14e5967ba7ab620315909b36dac3 100644 (file)
@@ -1715,7 +1715,7 @@ headerbar { // headerbar border rounding
     box-shadow: none;
   }
 
-  separator { background-color: $borders_color; }  // FIXME: use darker border?
+  separator { background-color: $borders_color; }  // FIXME: use darker border?
 
   @extend %titlebar;
 }
index 6468e2e2be8db83c204f59b83d44b1ccf80e4aed..94d5d4b5766798f890186b81c172a751be6d3f83 100644 (file)
@@ -692,7 +692,7 @@ window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) stack header
 
 window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparent; background-image: none; border-style: none; border-color: transparent; box-shadow: none; }
 
-.titlebar:not(headerbar) separator { background-color: #252526; }
+.titlebar:not(headerbar) separator { background-color: #252526; }
 
 window.devel headerbar.titlebar:not(.selection-mode) { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #3b4049 8%, #3f3e40 25%); color: rgba(238, 238, 236, 0.1); }
 
@@ -1472,9 +1472,9 @@ progressbar:backdrop { box-shadow: none; transition: 200ms ease-out; }
 
 progressbar progress { /* share most of scales' */ /* override insensitive that is specific to progress */ border-radius: 1.5px; }
 
-progressbar progress:disabled { background-color: #919494; border-color: #919494; }
+progressbar progress:disabled { background-color: #969696; border-color: #969696; }
 
-progressbar progress:backdrop:disabled { background-color: #566164; border-color: #566164; }
+progressbar progress:backdrop:disabled { background-color: #656466; border-color: #656466; }
 
 progressbar progress.left { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
 
index cdceb2927ae1518811bc359aebd00c03cacfb0ff..8263e98444bbd67743636ab5d5a1fcb52b568bbf 100644 (file)
@@ -700,7 +700,7 @@ window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) stack header
 
 window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparent; background-image: none; border-style: none; border-color: transparent; box-shadow: none; }
 
-.titlebar:not(headerbar) separator { background-color: #b6b6b3; }
+.titlebar:not(headerbar) separator { background-color: #b6b6b3; }
 
 window.devel headerbar.titlebar:not(.selection-mode) { background: transparent -gtk-icontheme("system-run-symbolic") 90% 0/256px 256px no-repeat, linear-gradient(to left, #d6dee7 8%, #e8e8e7 25%); color: rgba(46, 52, 54, 0.1); }